package org.elephas.model;

import javax.persistence.Entity;

/**
 * Represents the configuration for the application as a whole.
 *
 * <p>User: Nick Heudecker</p>
 * <p>Date: Jan 28, 2008</p>
 * <p>Time: 5:55:19 PM</p>
 */
@Entity
public class ElephasConfiguration extends AbstractPersistent {

	/** If public signup is available. */
    private Boolean publicSignup = Boolean.TRUE;
    
    /** The number of blogs a given user can create. */
    private Integer blogsPerUser = 1;
    
    /** The number of posts that are shown on the front page */
	private Integer postsOnFrontPage = 10;  

    public Boolean getPublicSignup() {
        return publicSignup;
    }

    public void setPublicSignup(Boolean publicSignup) {
        this.publicSignup = publicSignup;
    }

    public Integer getBlogsPerUser() {
        return blogsPerUser;
    }

    public void setBlogsPerUser(Integer blogsPerUser) {
        this.blogsPerUser = blogsPerUser;
    }

	public Integer getPostsOnFrontPage() {
		return postsOnFrontPage;
	}

	public void setPostsOnFrontPage(Integer postsOnFrontPage) {
		this.postsOnFrontPage = postsOnFrontPage;
	}
}
